package org.zhuxian.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("equipment_builds_like")
@Schema(description = "配装点赞实体类，记录用户对配装的点赞信息")
public class EquipmentBuildsLike {

    @Schema(description = "点赞记录ID，自动生成", example = "1")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "配装ID，关联equipment_builds表的id字段", example = "100")
    @TableField("build_id")
    private Integer buildId;

    @Schema(description = "点赞用户ID，关联users表的id字段", example = "1001")
    @TableField("user_id")
    private Long userId;
}